package cn.com.chengmandian.ccs.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 客户服务系统-在线聊消息
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("ccs_live_message")
@ApiModel(value = "CcsLiveMessage对象", description = "客户服务系统-在线聊消息")
public class CcsLiveMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("企业ID")
    private Integer companyId;

    @ApiModelProperty("消息编号")
    private String messageNo;

    @ApiModelProperty("客户ID")
    private Integer customerId;

    @ApiModelProperty("客服ID")
    private Integer serviceId;

    @ApiModelProperty("1-客服到客户 2-客户到客服")
    private Integer flow;

    @ApiModelProperty("消息类型 MSG_TEXT 文本消息 MSG_IMAGE 图片消息 MSG_FILE 文件消息 MSG_LOCATION 定位消息 MSG_TIP 提示消息")
    private String type;

    @ApiModelProperty("消息体")
    private String payload;

    @ApiModelProperty("显示文本消息")
    private String text;

    @ApiModelProperty("是否已读 1-已读 0-未读")
    private Integer isRead;

    @ApiModelProperty("是否撤回 1-已撤回 0-未撤回")
    private Integer isRevoked;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date modifyTime;


}
